package com.rabbiter.association.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 数据实体类
 * 活动信息
 */
@Data
@TableName(value = "activities")
@ApiModel(description = "活动实体")
public class Activities implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 记录ID
     */
    @TableId(value = "id")
    @ApiModelProperty(value = "活动ID")
    private String id;

    /**
     * 活动名称
     */
    @TableField(value = "name")
    @ApiModelProperty(value = "活动名称")
    private String name;

    /**
     * 活动概述
     */
    @TableField(value = "comm")
    @ApiModelProperty(value = "活动说明")
    private String comm;

    /**
     * 活动详情
     */
    @TableField(value = "detail")
    private String detail;

    /**
     * 活动要求
     */
    @TableField(value = "ask")
    private String ask;

    /**
     * 报名人数
     */
    @TableField(value = "total")
    @ApiModelProperty(value = "活动人数")
    private Integer total;

    /**
     * 活动时间
     */
    @TableField(value = "active_time")
    @ApiModelProperty(value = "活动时间")
    private String activeTime;

    /**
     * 发布社团
     */
    @TableField(value = "team_id")
    @ApiModelProperty(value = "社团ID")
    private String teamId;

    /**
     * 活动地点
     */
    @TableField(value = "address")
    @ApiModelProperty(value = "活动地点")
    private String address;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @ApiModelProperty(value = "创建时间")
    private String createTime;

    /**
     * 状态(0-未开始,1-进行中,2-已结束)
     */
    @TableField(value = "status")
    @ApiModelProperty(value = "状态(0-未开始,1-进行中,2-已结束)")
    private Integer status;


    @Override
    public String toString() {

        return "Activities [id=" + id
                + ", name=" + name
                + ", comm=" + comm
                + ", detail=" + detail
                + ", ask=" + ask
                + ", total=" + total
                + ", activeTime=" + activeTime
                + ", teamId=" + teamId
                + ", address=" + address
                + ", createTime=" + createTime
                + ", status=" + status
                + "]";
    }

}